package com.migu.rbac.message;

import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Desc:feign调用营销平台短信接口服务fallback
 * Date:2018-09-01
 */
@Component
public class PromacityServiceFallback implements PromactityService {

    @Override
    public String sendMessage(Map<String, String> map) throws Exception {
        throw new Exception("promacity sendMessage hystrix");
    }

    @Override
    public String checkMessage(Map<String, String> map) throws Exception {
        throw new Exception("promacity checkMessage hystrix");
    }
}
